﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/ConsumerMaster.master" CodeFile="district.aspx.cs" Inherits="Public_District" %>
<%@ MasterType VirtualPath="~/MasterPages/ConsumerMaster.master" %>
<asp:Content ID="Content" ContentPlaceHolderID="Consumer_ContentPlaceHolder" Runat="Server">

<table style="background-color:#aaaadd; width:100%">
<tr><td><asp:Label ID="name_label" runat="server" Font-Bold="true" Font-Size="Large"></asp:Label></td></tr>
<tr><td><asp:Label ID="description_label" runat="server"></asp:Label></td></tr>
</table>

<table width="100%">        
    <tr><th>
    <asp:DataList Id="restaurant_datalist" runat="server" RepeatDirection="Vertical" Width="100%"
         CellSpacing="4" >
    <ItemTemplate><table>
    <tr>        
        <th>
        <asp:HyperLink ID="HyperLink1" runat="server" Text='<%#Eval("Name")%>'
            NavigateUrl='<%#"~/public/restaurant-restaurant_id="+Eval("Id")+".aspx"%>'/>
        &#91;<asp:HyperLink ID="good_hyperlink" runat="server" ForeColor="Red" ToolTip="好|中|差" Text='<%#Eval("ScoreGood")%>'></asp:HyperLink>&#124;<asp:HyperLink ID="middle_hyperlink" runat="server" ToolTip="好|中|差" Text='<%#Eval("ScoreMiddle")%>'></asp:HyperLink>&#124;<asp:HyperLink ID="bad_hyperlink" runat="server" ForeColor="Green" ToolTip="好|中|差" Text='<%#Eval("ScoreBad")%>'></asp:HyperLink>&#93;
        <asp:label ID="comment_label" runat="server" Text="评" ToolTip="快速评论"></asp:label>    
            </th>
            
    <th style="font-weight:normal"><%# Eval("Advertise") %></th></tr>
    
    <tr><th style="font-style:italic; font-stretch:wider; font-size:larger; color:Green; width:250px"><%#Eval("Tel") %> <%#Eval("Mobile") %></th>    
    <th style="font-weight:normal"><%#Eval("AddressDescription") %></th></tr>
    <tr><th colspan="2" style="font-weight:normal; color:Gray"><%#Eval("DeliveryDescription") %></th></tr>
    </table></ItemTemplate>
    </asp:DataList></th></tr>
</table>

</asp:Content>

